

package cn.xd.base.persistence.mps.impl;

import cn.xd.base.basic.type.AdminRoleId;
import cn.xd.base.persistence.dos.AdminRoleMenuDO;
import cn.xd.base.persistence.mapper.AdminRoleMenuMapper;
import cn.xd.base.persistence.mps.AdminRoleMenuMpService;
import cn.xd.core.response.CollectResult;
import cn.xd.core.service.impl.BasicMpServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class AdminRoleMenuMpServiceImpl extends BasicMpServiceImpl<AdminRoleMenuMapper, AdminRoleMenuDO> implements AdminRoleMenuMpService {

    @Override
    public CollectResult<AdminRoleMenuDO> getAdminRoleMenu(AdminRoleId roleId) {
        return CollectResult.of(lambdaQuery().eq(AdminRoleMenuDO::getRoleId, roleId.getValue()).list());
    }
}
